package com.listen.dao;

import com.listen.model.Study;
import com.listen.model.StudyCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;

public interface StudyMapper {
    Long countByExample(StudyCriteria example) throws DataAccessException;

    int deleteByExample(StudyCriteria example) throws DataAccessException;

    int deleteByPrimaryKey(Integer id) throws DataAccessException;

    int insert(Study record) throws DataAccessException;

    int insertSelective(Study record) throws DataAccessException;

    List<Study> selectByExample(StudyCriteria example) throws DataAccessException;

    Study selectByPrimaryKey(Integer id) throws DataAccessException;

    int updateByExampleSelective(@Param("record") Study record, @Param("example") StudyCriteria example) throws DataAccessException;

    int updateByExample(@Param("record") Study record, @Param("example") StudyCriteria example) throws DataAccessException;

    int updateByPrimaryKeySelective(Study record) throws DataAccessException;

    int updateByPrimaryKey(Study record) throws DataAccessException;
}